#!/bin/sh

version=$1

[ -z "$version" ] && echo "./build <7|8>"

if [ "$version" == 7 ]; then
    docker build -t homqyy/dev_env_centos7 -f CentOS7.Dockerfile .
elif [ "$version" == 8 ]; then
    docker build -t homqyy/dev_env_centos8 -f CentOS8.Dockerfile .
else
    echo "./build <7|8>"
fi
